import request from '@/utils/request'

// 查询仪类类型列表
export function listYibiaoType(query) {
  return request({
    url: '/yibiaoManagement/yibiaoType/list',
    method: 'get',
    params: query
  })
}

// 查询仪类类型详细
export function getYibiaoType(ybTpId) {
  return request({
    url: '/yibiaoManagement/yibiaoType/' + ybTpId,
    method: 'get'
  })
}

// 新增仪类类型
export function addYibiaoType(data) {
  return request({
    url: '/yibiaoManagement/yibiaoType',
    method: 'post',
    data: data
  })
}

// 修改仪类类型
export function updateYibiaoType(data) {
  return request({
    url: '/yibiaoManagement/yibiaoType',
    method: 'put',
    data: data
  })
}

// 删除仪类类型
export function delYibiaoType(ybTpId) {
  return request({
    url: '/yibiaoManagement/yibiaoType/' + ybTpId,
    method: 'delete'
  })
}

// ------------------------------------------------------------
// 查询仪表收费列表
export function listYibiaoShouFei() {
  return request({
    url: '/yibiaoManagement/yibiaoType/shoufei',
    method: 'get',
    params: ''
  })
}
